//
//  CrashNotificationCenter.m
//  crashreport
//
//  Created by william mu on 12-8-9.
//  Copyright (c) 2012年 Tencent. All rights reserved.
//

#import "CrashNotificationCenter.h"
#import <mach/mach.h>

@implementation CrashNotificationCenter
DEFINE_SINGLETON(CrashNotificationCenter);

-(id) init
{
    if(INSTANCE_VAR_FOR(CrashNotificationCenter))
        THROW_SINGLETON_EXCEP();
        
    if(self = [super init])
    {
        INSTANCE_VAR_FOR(CrashNotificationCenter) = self;
    }
    
    return self;
}

#ifdef __i386__

-(NSString*) getCrashBackTracei386WithState:(x86_thread_state32_t*) pState
{
    return @"";
}

-(void) notifyi386CrashWithState:(x86_thread_state32_t*) pState withThread:(mach_port_t) thread
{
    NSString* backtrace = [self getCrashBackTracei386WithState:pState];
    
}
#elif __arm__
#endif
@end
